/* =================================================================================
File name:       DIGITAL_FILTER.H
===================================================================================*/


#ifndef __DIGITAL_FILTER__
#define __DIGITAL_FILTER__

typedef struct {
					float in;
					float out;
					float x_value[3];
					float y_value[3];
					float denominators[3];
					float numerators[3];
					float cutoff_freq;
					float ts;
				} SO_FILTER;

void SO_FILTER_INIT(SO_FILTER *pHandle);
void SO_FILTER_UPDATE(SO_FILTER *pHandle);

#endif // __DIGITAL_FILTER__

